package com.lee9213.demo.dao;


import com.lee9213.core.exception.MapperException;
import com.lee9213.demo.entity.DemoEntity;

import java.util.List;

/**
 * @author libo
 * @version 1.0
 * @date 2017/11/27 16:50
 */
public interface IDemoDao {

    /**
     * 添加对象
     *
     * @param entity
     * @return 主键ID
     */
    Long save(DemoEntity entity);

    /**
     * 修改对象
     *
     * @param entity
     * @return
     */
    Integer update(DemoEntity entity);

    List<DemoEntity> list();
}
